package com.gpl.controller;


import com.gpl.service.IOVServerHandler;
import io.netty.channel.Channel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


import java.util.Map;

/**
 * @Author: 高创
 * @Date: 2023-05-24-11:52
 * @Description: 类
 */
@RestController
@RequestMapping("iov")
public class IOVController {

    @Autowired
    private IOVServerHandler iovServerHandler;

    @GetMapping("getActiveChannel")
    public Map<String, Channel> getActiveChannel(){
        return iovServerHandler.getActiveChannel();
    }

    @GetMapping("getActiveVin")
    public Map<String, Channel> getActiveVin(){
        return iovServerHandler.getActiveVin();
    }

}
